package com.garbage.service;

import com.garbage.dao.UserMapper;
import com.garbage.pojo.User;

/**
 * Author: abin
 * Date: 2021-04-23
 * Description:
 */
public class UserServiceImpl implements UserService {
    private UserMapper userMapper;

    public void setUserMapper(UserMapper userMapper) {
        this.userMapper = userMapper;
    }

    public User findUser(String username, String password) {
        return userMapper.findUser(username,password);
    }

    public int addUser(User user) {
        return userMapper.addUser(user);
    }

    public int deleteUser(User user) {
        return userMapper.deleteUser(user);
    }

    public int updateUser(User user) {
        return userMapper.updateUser(user);
    }

}
